package com.example.sentineldemo.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Package: com.example.sentineldemo.feign
 * @ClassName: HelloFeignService
 * @Author: Think
 * @CreateTime: 2021/7/23 13:36
 * @Description:
 */
@FeignClient(name="feign-helo", url = "http://localhost:8081", fallback = FeignFallBackService.class)
public interface HelloFeignService {

    @RequestMapping(value = "/getHello0", method = RequestMethod.GET)
    String getHello();

}
